Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(buf): disable which-key when recording a macro #851

Closed
wants to merge 1 commit into from

Conversation

mehalter
Copy link
Contributor

Description

Currently which-key breaks macro recording which makes keys get double recorded. This disables which-key while recording to restore this critical vim functionality.

Related Issue(s)

@mehalter
Copy link
Contributor Author

It would be nice to get a better fix for this that would allow which-key to still function while recording a macro, but for now it is much better to not break the macro recording functionality than to have which-key function

@folke
Copy link
Owner

folke commented Sep 18, 2024

I was actually planning to look into this just now :)

Your fix would have worked in most cases, but there could still possibly be issues with macro executing and re-attaching after the macro ended recording.

Just fixed it for all those cases (I think).

Thanks!

@mehalter
Copy link
Contributor Author

Awesome thanks so much I like your approach much better! Could we also get a stable release tagged with this fix as well :)

@mehalter mehalter deleted the disable_in_macros branch September 18, 2024 18:37
folke pushed a commit that referenced this pull request Sep 18, 2024
🤖 I have created a release *beep* *boop*
---


##
[3.13.3](v3.13.2...v3.13.3)
(2024-09-18)


### Bug Fixes

* **config:** disable wk by default for terminal mode
([#825](#825))
([e7b415c](e7b415c))
* **triggers:** never attach when macro is recording / executing. Fixes
[#851](#851). Fixes
[#822](#822). Fixes
[#807](#807)
([6b023b4](6b023b4))
* **view:** display actual scroll up/down keys in help
([#821](#821))
([dafe27a](dafe27a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@folke
Copy link
Owner

folke commented Sep 18, 2024

Done!

@blarz blarz mentioned this pull request Oct 7, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: user keymaps get double recorded in macros bug: paste register in insert mode get double for macro
2 participants